package com.lipeng.bean;

import org.springframework.web.multipart.MultipartFile;

public class Master {
    private Integer mid;

    private String mname;

    private String mintro;

    private String mpic;

    private Integer mage;

    private String news;

    private MultipartFile file;

    public Master(){
    }

    public Master(Integer mid, String mname, String mintro, String mpic, Integer mage, String news, MultipartFile file) {
        this.mid = mid;
        this.mname = mname;
        this.mintro = mintro;
        this.mpic = mpic;
        this.mage = mage;
        this.news = news;
        this.file = file;
    }

    @Override
    public String toString() {
        return "Master{" +
                "mid=" + mid +
                ", mname='" + mname + '\'' +
                ", mintro='" + mintro + '\'' +
                ", mpic='" + mpic + '\'' +
                ", mage=" + mage +
                ", news='" + news + '\'' +
                ", file=" + file +
                '}';
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public String getMname() {
        return mname;
    }

    public void setMname(String mname) {
        this.mname = mname == null ? null : mname.trim();
    }

    public String getMintro() {
        return mintro;
    }

    public void setMintro(String mintro) {
        this.mintro = mintro == null ? null : mintro.trim();
    }

    public String getMpic() {
        return mpic;
    }

    public void setMpic(String mpic) {
        this.mpic = mpic == null ? null : mpic.trim();
    }

    public Integer getMage() {
        return mage;
    }

    public void setMage(Integer mage) {
        this.mage = mage;
    }

    public String getNews() {
        return news;
    }

    public void setNews(String news) {
        this.news = news == null ? null : news.trim();
    }
}